package com.gouaixin.bee.beeframework2.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.gouaixin.bee.beeframework2.tool.mLog;

/**
 * 作者：Fisher on 2015/5/11 10:18
 * 邮箱：630709658@qq.com
 * 座右铭:知识来自积累,经验源于总结
 */
public class BannerService extends Service {
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onCreate() {
        super.onCreate();
    }


    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        mLog.e("BannerService：onDestroy");
        Intent localIntent = new Intent();
        localIntent.setClass(this, BannerService.class);  //销毁时重新启动Service
        this.startService(localIntent);
    }
}
